package week2;

public class Rectangle {

    int wide;
    int high;

    public Rectangle(int wide, int high) {
        this.wide = wide;
        this.high = high;
    }

    public Rectangle() {
    }

    public Rectangle(int wide) {
        this.wide = wide;
        this.high = wide;
    }

    public int getWide() {
        return wide;
    }

    public void setWide(int wide) {
        this.wide = wide;
    }

    public int getHigh() {
        return high;
    }

    public void setHigh(int high) {
        this.high = high;
    }

    public int peri(){
        return 2 * (this.high + this .wide);
    }

    public int area(){
        return this.wide * this.high;
    }

}
